package org.idea.spring.bean.beaninit;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;
import java.util.ArrayList;

/**
 * @Author idea
 * @Date created in 8:14 上午 2020/7/10
 */
public class DefaultPeopleFactory implements PeopleFactory, InitializingBean {

    @PostConstruct
    public void init() {
        System.out.println("this is init");
    }

    public void init2() {
        System.out.println("this is init2");
    }


    @Override
    public void afterPropertiesSet() throws Exception {
        ArrayList arrayList;
        System.out.println("this is afterPropertiesSet");
    }
}
